package com.group3.domain;

import com.group3.pojo.receive.StudentReceive;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@ApiModel(value = "学生详细信息类")
public class StudentInfo {
    @ApiModelProperty(value = "院系")
    private String departName;

    @ApiModelProperty(value = "专业")
    private String professionName;

    @ApiModelProperty(value = "年级")
    private String grade;

    @ApiModelProperty(value = "班级名")
    private String classId;

    @ApiModelProperty(value = "班主任教师工号")
    private String teacherId;

    @ApiModelProperty(value = "班主任教师姓名")
    private String teacherName;

    @ApiModelProperty(value = "学生姓名")
    private String studentName;

    @ApiModelProperty(value = "学生学号")
    private String studentId;

    @ApiModelProperty(value = "学生性别")
    private Integer sex;

    @ApiModelProperty(value = "学生身份证")
    private String cardId;

    @ApiModelProperty(value = "学生电话")
    private String tel;

    @ApiModelProperty(value = "学生邮箱")
    private String email;

    @ApiModelProperty(value = "项目角色")
    private Integer type;

    @ApiModelProperty(value = "项目角色string")
    private String typeStr;

    public String getTypeStr() {
        switch (type) {
//            0:前端；1;后台；2：测试
            case 0:
                return "前端";
            case 1:
                return "后台";
            case 2:
                return "测试";
        }
        return "?";
    }
    public StudentInfo(){
    }

    public StudentInfo(StudentReceive studentReceive){
        this.classId = studentReceive.getClassId();
        this.studentName = studentReceive.getStudentName();
        this.studentId = studentReceive.getStudentId();
        this.sex = studentReceive.getSex();
        this.cardId = studentReceive.getCardId();
        this.tel = studentReceive.getTel();
        this.email = studentReceive.getEmail();
        this.type = studentReceive.getType();
    }


//    public String getDepartName() {
//        return departName;
//    }
//
//    public void setDepartName(String departName) {
//        this.departName = departName == null ? null : departName.trim();
//    }
//
//    public String getProfessionName() {
//        return professionName;
//    }
//
//    public void setProfessionName(String professionName) {
//        this.professionName = professionName == null ? null : professionName.trim();
//    }
//
//    public String getGrade() {
//        return grade;
//    }
//
//    public void setGrade(String grade) {
//        this.grade = grade == null ? null : grade.trim();
//    }
//
//    public String getClassId() {
//        return classId;
//    }
//
//    public void setClassId(String classId) {
//        this.classId = classId == null ? null : classId.trim();
//    }
//
//    public String getTeacherName() {
//        return teacherName;
//    }
//
//    public void setTeacherName(String teacherName) {
//        this.teacherName = teacherName == null ? null : teacherName.trim();
//    }
//
//    public String getStudentName() {
//        return studentName;
//    }
//
//    public void setStudentName(String studentName) {
//        this.studentName = studentName == null ? null : studentName.trim();
//    }
//
//    public String getStudentId() {
//        return studentId;
//    }
//
//    public void setStudentId(String studentId) {
//        this.studentId = studentId == null ? null : studentId.trim();
//    }
//
//    public Integer getSex() {
//        return sex;
//    }
//
//    public void setSex(Integer sex) {
//        this.sex = sex;
//    }
//
//    public String getCardId() {
//        return cardId;
//    }
//
//    public void setCardId(String cardId) {
//        this.cardId = cardId == null ? null : cardId.trim();
//    }
//
//    public String getTel() {
//        return tel;
//    }
//
//    public void setTel(String tel) {
//        this.tel = tel == null ? null : tel.trim();
//    }
//
//    public String getEmail() {
//        return email;
//    }
//
//    public void setEmail(String email) {
//        this.email = email == null ? null : email.trim();
//    }
//
//    public String getTeacherId() {
//        return teacherId;
//    }
//
//    public void setTeacherId(String teacherId) {
//        this.teacherId = teacherId == null ? null : teacherId.trim();
//    }
}